package cn.xorange.commons.system.mapper.platform;

import cn.xorange.commons.data.core.mapper.MBaseMapper;
import cn.xorange.commons.system.entity.platform.SysTenantProduct;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author : yangjian
 * date : 2024/9/6
 * description :
 */
@Mapper
public interface SysTenantProductMapper extends MBaseMapper<SysTenantProduct> {

    @Select("select u.*,p.product_name from sys_tenant_product u,sys_product p" +
            " where u.product_id = p.product_id" +
            "   and u.tenant_id = #{tenantId}")
    List<SysTenantProduct> selectTenantProductList(@Param("tenantId") Long tenantId);
}
